<template>
  <div id="app">
    <m-header :settings="this.header"></m-header>
    <div class="body-container">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
  import {mapState} from 'vuex'
  import MHeader from './components/commons/MHeader';
  export default {
    components: {
      MHeader
    },
    computed: {
      ...mapState({
        header: (state) => state.header.header,
      })
    }
  };
</script>

<style lang="less">
  @import '~vux/src/styles/reset.less';

  body {
    background-color: #fbf9fe;
  }

  .body-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 105;
    width: 100%;
    height: 100%;
    padding: 46px 0 0;
    overflow: auto;
    box-sizing: border-box;
  }
</style>
